package com.lant.enums;

/**
 * 响应状态枚举
 *
 * @author zhouyang 2019-02-13 15:59
 */
public enum ResponseStatusEnum {
    /**
     * OK 200
     */
    OK(200, "OK"),
    /**
     * BAD_REQUEST 400
     */
    BAD_REQUEST(400, "BadRequest"),
    /**
     * SERVER_ERROR 500
     */
    SERVER_ERROR(500, "ServerError");

    private int value;
    private String description;

    ResponseStatusEnum(int value, String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }
}
